Detect if objects are loaded [Javascript]

Posted by Samuel on Stack Overflow See other posts from Stack Overflow or by Samuel
Published on 2010-05-24T10:07:25Z Indexed on 2010/05/24 10:11 UTC
Read the original article Hit count: 290

Filed under:
|

I was wondering, is there a way to detect if a certain image / div is loaded? For example when i am loading two heavy images and showing a loading sign at the two places the images will later occupy, is there a way to already display the first image when it's loaded while still loading the second one?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about image-preloader